package com.allwees.bs.c.module.order.dto;



import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
//@ApiModel
public class ShippingDTO implements Serializable {

//    @ApiModelProperty(value = "快递方式ID")
    private Long id;

//    @ApiModelProperty(value = "快递名称英文")
    private String nameEn;

//    @ApiModelProperty(value = "快递单号")
    private String number;

//    @ApiModelProperty(value = "快递状态，2：在途中，3：签收，4：问题件")
    private Integer status;

//    @ApiModelProperty(value = "发货时间")
    private Date shippingAt;

//    @ApiModelProperty(value = "确认收货时间")
    private Date confirmedShippingAt;

//    @ApiModelProperty(value = "追踪数据")
    private List<Track> traces;


    public ShippingDTO() {

    }

    @Data
    private static class Track {
//        @ApiModelProperty(value = "接收站")
        private String acceptStation;

//        @ApiModelProperty(value = "接收时间")
        private String acceptTime;

        private Track() {

        }

        private Track(String acceptStation, String acceptTime) {
            this.setAcceptStation(acceptStation);
            this.setAcceptTime(acceptTime);
        }
    }
}
